﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
using System.Collections.Generic;



public partial class getdata : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string Act = cyly.GetUrlParaValues("act");

        switch (Act)
        {
            case "getData":
              //  Response.Write(getData());
                break;


        }




    }


    //public static string getData()
    //{
    //    string RStr = "";
    //    AccessDatabase ad = new AccessDatabase();
    //    string Cmd = "select count(*) as Num from qq where day(ddate)=day(now())";
    //    string Cmd2 = "select count(*) as Num from qq where day(ddate)=day(now()) and isemail=1";
    //    string Cmd3 = "select count(*) as Num from qq";
    //    string Cmd4 = "select count(*) as Num from qq where isemail=1";
    //    OleDbDataReader reder1 = ad.ExeSql(Cmd);
    //    OleDbDataReader reder2 = ad.ExeSql(Cmd2);
    //    OleDbDataReader reder3 = ad.ExeSql(Cmd3);
    //    OleDbDataReader reder4 = ad.ExeSql(Cmd4);
    //    if (reder1.Read())
    //        RStr = "当日采集总数量：<b>" + reder1["Num"].ToString() + "</b>";
    //    if (reder2.Read())
    //        RStr += " 当日发送成功数量：<b>" + reder2["Num"].ToString() + "</b>";
    //    if (reder3.Read())
    //        RStr += " 总采集数量：<b>" + reder3["Num"].ToString() + "</b>";
    //    if (reder4.Read())
    //    {
    //        RStr += " 总发送成功数量：<b>" + reder4["Num"].ToString() + "</b>";
    //    }
    //    reder1.Close();
    //    reder2.Close();
    //    reder3.Close();
    //    reder4.Close();
    //    return RStr;
    //}



}
